package com.BigDate.server.mapper;

import com.BigDate.server.pojo.Experiment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stx
 * @since 2021-12-26
 */
public interface ExperimentMapper extends BaseMapper<Experiment> {

    /**
     * 获取实验(分页)
     * @param page
     * @param experiment
     * @return
     */
    IPage<Experiment> getExpByPage(Page<Experiment> page,@Param("experiment") Experiment experiment);

    List<Experiment> findLimitPr();

    List<Experiment> findLimitIt();

    List<Experiment> findLimitHi();

    Experiment findById(Integer id);
}
